import 'package:get/get.dart';

class ChartController extends GetxController {
  // 动态数据
  var totalPoints = 0.obs; // 点位总数
  var normalCount = 0.obs; // 正常数
  var abnormalCount = 0.obs; // 异常数
  var uncheckedCount = 0.obs; // 未巡检数

  // 更新数据的方法
  void updateData(int normal, int abnormal, int unchecked) {
    normalCount.value = normal;
    abnormalCount.value = abnormal;
    uncheckedCount.value = unchecked;
    totalPoints.value = normal + abnormal + unchecked;
  }
}
